package chapter04;

public class Test02_throws {
    public static void main(String[] args) {
        try {
            int c = divide(10,0);
            System.out.println(c);
        }catch (Exception e){
            System.out.println(e.getMessage());
        }
    }
    //手动抛出异常 必须显示的处理
    static int divide(int a,int b) throws Exception{
        return a/b;
    }
}
